// 引入request请求
import { request } from '../utils/http';

const API = {
  // 获取听书推荐列表
  getrecommendlist(data) {
    return request('/books/getBooksVoiceRecommendList', data,"post"); 
  },
  // 获取书籍检索类型
  getBooksSearchType(data) {
    return request('/books/getBooksSearchType', data); 
  },
  // 获取书籍类型
  getgetBooksType(data) {
    return request('/books/getBooksType', data); 
  },
  // 根据书籍类型获取书籍列表
  getBooksListByType(data){
    return request('/books/getBooksListByType', data,"post"); 
  },
  // 根据书籍ID获取分集列表信息
  getBooksChapterDivisionInfoByVoiceId(data){
    return request('/books/getBooksChapterDivisionInfoByVoiceId', data); 
  },
  // 根据书籍ID获取书籍详情
  getBookInfoByVoiceId(data){
    return request('/books/getBookInfoByVoiceId', data); 
  },
  // 根据章节ID获取章节详细信息。
  getBookVoiceChapterInfo(data){
    return request('/books/getBookVoiceChapterInfo', data); 
  },
  // 获取书籍排序类型
  getBooksOrderType(data){
    return request('/books/getBooksOrderType', data); 
  },
  // 获取个人检索记录
  getMemberBooksKeywordsList(data){
    return request('/books/getMemberBooksKeywordsList', data); 
  },
  // 获取书籍检索次数最多的关键字
  getBooksKeywordsList(data){
    return request('/books/getBooksKeywordsList', data); 
  },
  // 根据关键字获取书籍列表
  getBooksListByKeywords(data){
    return request('/books/getBooksListByKeywords', data,"post"); 
  },
  // 收藏书籍/章节
  insertBookOneCollection(data){
    return request('/books/insertBookOneCollection', data,"post"); 
  },
  // 取消收藏书籍/章节
  cancelBookCollection(data){
    return request('/books/cancelBookCollection', data,"post"); 
  },
}

module.exports = {
    API: API
}